package mid

import (
	"math"
	"sort"
)

func FindValueOfPartition(nums []int) int {
	sort.Ints(nums)
	res := math.MaxInt
	for i := 1; i < len(nums); i++ {
		res = min(res, nums[i]-nums[i-1])
	}
	return res
}
